﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WikiSubCats.ascx.cs" Inherits="Admin_WikiSubCats" %>
<asp:MultiView runat="server" ID="SubCatView" ActiveViewIndex="0">
    <asp:View runat="server" ID="SubCatList">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderStyle="None"
            DataKeyNames="catId" DataMember="CategoryItem" GridLines="None" ShowHeader="False"
            Width="100%" OnRowDataBound="GridView1_RowBound">
            <RowStyle BorderStyle="None" />
            <Columns>
                <asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Top">
                    <ItemTemplate>
                        <%--<div style="width:592px;"><%# ResoureManage.GetString("lableEnCyCategorys", "ru")%>:</div>--%>
                        <div class="nathead2">
                            <div style="width: 50px;">
                            </div>
                            <div style="width: 522px;">
                                <%# Eval("cTitle") %></div>
                            <div style="width: 105px;">
                                <asp:Button ID="LinkButton1" runat="server" CausesValidation="True" CommandArgument='<%# Eval("catId") %>'
                                    OnCommand="btnUpdateSubCat_Click" UseSubmitBehavior="false" Text="Изменить">
                                </asp:Button></div>
                            <div style="width: 80px;">
                                <asp:Button ID="lnkDeleteww" runat="server" CausesValidation="False" CommandArgument='<%# Eval("catId") %>'
                                    OnCommand="btnDeleteSubCat_Click" UseSubmitBehavior="false" Text="Удалить"></asp:Button></div>
                        </div>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:Button ID="btnAddSubCategory" runat="server" Text="Добавить подкатегорию" OnClick="btnAddCat_Click" />
    </asp:View>
    <asp:View ID="addCat" runat="server">
        <div>
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td colspan="2">
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblCname" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtCatname" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblPageName" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPageName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="top" style="width: 100px;">
                        <asp:Label ID="lblSubDesc" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtcDesc" Width="480px" Height="110px" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnBack" runat="server" Text=" " OnClick="btnBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnAddCat" runat="server" Text="Button" OnClick="btnUpdateCat_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </asp:View>
</asp:MultiView>